import type { RuleItem } from "./rule";

// 可配置的表单
export interface FormOptions{
	// 表单项显示的元素
	type:'cascader'|'checkbox'|'checkbox-group'|'checkbox-button'
		|'color-picker'|'date-pikcer'|'input'|'input-number'|'radio'
		|'radio-group'|'radio-button'|'rate'|'select'|'option'|'slider'
		|'switch'|'time-picker'|'time-selelct'|'transfer'|'upload',
		// 表单项的值
	value:any,
	// 表单项的标签
	label?:string,
	// 表单项的标识
	prop?:string,
	// 表单验证规则
	rules?:RuleItem[],
	// 表单元素特有的属性
	attrs?:{
		clearable?:boolean,
		showPassword?:boolean,
		disabled?:boolean
	},
	// 表单项的占位符
	placeholder?:''
	
}